import request from '@/utils/request'

// 查询检测任务列表
export function listDetect(query) {
  return request({
    url: '/eim/detect/list',
    method: 'get',
    params: query
  })
}

// 查询检测任务详细
export function getDetect(id) {
  return request({
    url: '/eim/detect/' + id,
    method: 'get'
  })
}

// 新增检测任务
export function addDetect(data) {
  return request({
    url: '/eim/detect',
    method: 'post',
    data: data
  })
}

// 修改检测任务
export function updateDetect(data) {
  return request({
    url: '/eim/detect',
    method: 'put',
    data: data
  })
}

// 删除检测任务
export function delDetect(id) {
  return request({
    url: '/eim/detect/' + id,
    method: 'delete'
  })
}
